//数值
let a:number=1;
//字符串
let str:string;
str="hello";
//布尔值
let bool:boolean;
bool=false;
//数组
let arr:number[];
arr=[];
arr=[1,2,3,5];
let arr2:Array<number>;
arr2=[5,7,8,9];
//元组
let yarr:[number,string,boolean];
yarr=[1,"456",true];
//枚举
enum codeType {"running","building","completed","failed"} 
let type=codeType.building;
function fn():void{
    console.log(1)
    // return 1;
}
//null
let n:null;
//undefined
let y:undefined;
//any
let i:any;
i="jdklsfjlksd";
i=123;
i=true;
//never
function error(msg):never{
    throw new Error(msg)
}
export default{};